
local regerr=require'zdc.errtbl'.RegErr

module(...)

regerr(2,'EIE',{type='format','internal error'})
regerr(2,'EERF1',{type='format','error running function $1'})
regerr(2,'ESOTMP',{'stack overflow (too many params)'})
regerr(2,'ESOFRA',{'stack overflow for return args'})
regerr(2,'EICO1',{type='format','invalid call option ($1)'})
regerr(2,'EWRT1N',{type='format','wrong result type $1 needed'})
regerr(2,'EBV',{'bad value'})
regerr(2,'EBAT1',{type='format','bad arg type $1'})
regerr(2,'EUL1',{type='format','unknow limit $1'})
regerr(2,'ESL1NI2',{type='format','string lenth $1 not in $2'})
regerr(2,'ES1NM2',{type='format','string $1 need match $2'})
regerr(2,'EN1NI2',{type='format','number $1 not in $2'})
regerr(2,'EMA1NI2',{type='format','mac addr $1 not in $2'})
regerr(2,'EBMAF',{'bad mac addr format'})
regerr(2,'EBIAF',{'bad ip addr format'})
regerr(2,'EIA1NI2',{type='format','ip addr $1 not in $2'})
regerr(2,'EIA1NB2',{type='format',"ip addr $1 can't be $2"})
regerr(2,'EBIPF',{'bad ip prefix format'})
regerr(2,'EIP1NI2',{type='format','ip prefix $1 not in $2'})
regerr(2,'EIP1NB2',{type='format',"ip prefix $1 can't be $2"})
regerr(2,'EBPF',{'bad prefix format'})
regerr(2,'EP1NI2',{type='format','prefix $1 not in $2'})
regerr(2,'EP1NB2',{type='format',"prefix $1 can't be $2"})

regerr(1,'EDBBH',{'denned by before hook'})
regerr(1,'EDBUH',{'denned by update hook'})
regerr(1,'EDBAS',{'denned by addsub'})
regerr(2,'EDBS1H',{type='format','denned by spec $1 hook'})
regerr(2,'ENPF1',{type='format','no permission for $1'})
regerr(2,'ENTDF1',{type='format','no type define for $1'})
regerr(2,'ENSDF1',{type='format','no sub define for $1'})
regerr(2,'ENSDF1E2',{type='format','no sub define for $1,$2'})
regerr(2,'ESNNBU1',{type='format',"sub node $1 can't be unset"})
regerr(2,'E1NBU',{type='format',"$1 can't be unset"})
regerr(2,'ESN1NBGAF',{type='format',"sub node $1 can't be get as field"})
regerr(2,'E1NASN',{type='format',"$1 isn't a sub node"})

regerr(2,'E1NTE',{type='format','$1 need trans env'})
regerr(2,'E1NAC',{type='format','$1 need async call'})
regerr(2,'ENADF1',{type='format','not action define for $1'})
regerr(2,'EBCP1',{type='format','bad call path $1'})
regerr(2,'ECP1NF',{type='format','call path $1 not find'})
regerr(2,'ESN1E',{type='format','sub node $1 exist'})
regerr(2,'ESN1EO2',{type='format','sub node $1 exist on $2'})
regerr(2,'EN1NE',{type='format','node $1 not exist'})
regerr(2,'ESN1NE',{type='format','sub node $1 not exist'})
regerr(2,'ENC1O2',{type='format',"can't create $1 on $2"})
regerr(2,'ENFF1',{type='format','need fill fields $1'})
regerr(2,'EDCFRF1',{type='format','denny change for ro field $1'})
regerr(2,'EDUFRF1',{type='format','denny unset for ro field $1'})
